﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Sistema.WF.Componentes.Controles
{
    public class R2DataGridView :DataGridView
    {
        public R2Configuracoes _conf = new R2Configuracoes();
        public R2DataGridView()
            {
                ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
                
                this.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;

                //this.EditMode = DataGridViewEditMode.EditProgrammatically;
                this.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
                this.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
                this.AllowUserToResizeRows = false;
                this.AllowUserToDeleteRows = false;
                this.RowHeadersVisible = false;
           
                this.Font = _conf.Fonte;

                BackgroundColor = System.Drawing.Color.White;

            }
                   
    }
}
